package com.ss.android.article.browser.dialog;

import android.app.Activity;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.AutoCompleteTextView;
import android.widget.EditText;

import com.a.a.t;
import com.ss.android.article.browser.database.BrowserHistory;
import com.ss.android.common.dialog.AlertDialog.Builder;

import java.util.List;

final class f extends t {
    protected final LightningDialogBuilder e;
    private final Activity f;
    protected final AutoCompleteTextView a;
    private final Builder g;
    private final View h;
    protected final EditText b;
    protected final EditText c;
    protected final BrowserHistory d;

    f(LightningDialogBuilder arg1, Activity arg2, AutoCompleteTextView arg3, Builder arg4, View arg5, EditText arg6, EditText arg7, BrowserHistory arg8) {
        this.e = arg1;
        this.f = arg2;
        this.a = arg3;
        this.g = arg4;
        this.h = arg5;
        this.b = arg6;
        this.c = arg7;
        this.d = arg8;

    }

    public final void a(@Nullable Object arg4) {
        ArrayAdapter v0 = new ArrayAdapter(this.f, 17367050, ((List) arg4));
        this.a.setThreshold(1);
        this.a.setAdapter(v0);
        this.g.setCustomTitle(this.h);
        this.g.setPositiveButton(this.f.getString(com.ss.android.article.browser.R.string.c_), new g(this));
        android.support.design.a.resizeDialog(this.f, this.g.show());
    }
}

